//
//  Fix.cpp
//  dentist
//
//  Created by Ethan on 13-12-4.
//
//

#include "Fix.h"
#include "HelloWorldScene.h"
#include "BaseBadPoint.h"
#include "Tool.h"

Fix::Fix(void)
{
}

Fix::~Fix(void)
{
	pTool->autorelease();
}

Fix::Fix(CCLayer* helloWorld, std::vector<BaseTooth*> pTwTooth){
    pTool = new Tool(pTwTooth);
    pTool->touchEndedX = 278;
    pTool->touchEndedY = 412;
    
    pTool->relativeX = 0;
    pTool->relativeY = 20;
    
    pTool->initWithTexture(CCTextureCache::sharedTextureCache()->addImage("yy_tool_6.png"));
    pTool->setPosition(ccp(608, 213));
    pTool->setZOrder(5);
    helloWorld->addChild(pTool);
    pTool->fixKind = BaseBadPoint::EMPTY;
}